#include "MYstring.h"
#include "string.h"
#include "stdarg.h"
#include "stdio.h"

#define BufLenth 256

void PickNUM(unsigned char *Input, unsigned char *Output, unsigned char index)
{
    unsigned int i = 0, j = 0;
    while(Input[i] != index) i++;
		i++;
	
    while((Input[i] >= '0') && (Input[i] <= '9') || (Input[i] == '.') )
    {
        Output[j] = Input[i];
        j++;    i++;
    }
} 

void PickNUM_Blank(unsigned char *Input, unsigned char *Output, unsigned char order)
{
    unsigned int i = 0, j = 0;
    while (order > 0)
    {
        while (Input[i] != ' ') i++;
        order--;
    }
    i++;
    while((Input[i] >= '0') && (Input[i] <= '9') || (Input[i] == '.') )
    {
        Output[j] = Input[i];
        j++;    i++;
    }
} 

void Printf2Buf(char *buffer, char *fmt,...)
{
	va_list args;
    va_start(args, fmt);
    vsnprintf((char *)buffer, BufLenth, (char *)fmt, args);
    va_end(args);
}



